package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.SinglePage;
import com.settlement.system.model.entity.common.TblReceiveRefundShop;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

/**
 * 收退款-店铺 服务类
 *
 * @author Ximi
 * @since 2020-07-07
 */
public interface ITblReceiveRefundShopService extends IBaseService {

    /**
     * 通过店铺编码获取店铺
     *
     * @param shopNo
     * @return
     * @throws ServiceException
     */
    @Cacheable("rrShopByShopNo")
    public TblReceiveRefundShop getByShopNo(String shopNo) throws ServiceException;

    /**
     * 通过NC店铺编码获取店铺
     *
     * @param ncShopNo
     * @return
     * @throws ServiceException
     */
    public TblReceiveRefundShop getByNcShopNo(String ncShopNo) throws ServiceException;

    /**
     * 通过NC店铺编码获取店铺
     *
     * @param ncShopName
     * @return
     * @throws ServiceException
     */
    public TblReceiveRefundShop getByNcShopName(String ncShopName) throws ServiceException;

    /**
     * 通过入账主体获取店铺表
     *
     * @param ncEnterAccountBody 入账主体
     * @return
     * @throws ServiceException
     */
    public List<TblReceiveRefundShop> getByNcEnterAccountBody(String ncEnterAccountBody) throws ServiceException;

    /**
     * 通过入账主体获取店铺表
     *
     * @param threeChannelNo 三级来源编码
     * @return
     * @throws ServiceException
     */
    public TblReceiveRefundShop getByThreeChannelNo(String threeChannelNo) throws ServiceException;

    /**
     * 获取NC店铺的数量
     *
     * @param params
     * @return
     * @throws ServiceException
     */
    public Integer getNcShopCount(Map<String, Object> params) throws ServiceException;

    /**
     * 获取NC店铺
     *
     * @param page
     * @param params
     * @param orderByField
     * @param orderBy
     * @return
     * @throws ServiceException
     */
    public List<TblReceiveRefundShop> getNcShop(SinglePage page, Map<String, Object> params, String orderByField, String orderBy) throws ServiceException;

    TblReceiveRefundShop selectExistShop(TblReceiveRefundShop subject) throws ServiceException;
}

